import React, { Component } from 'react'

export default class Son extends Component {
    state = {
        count: 8888888
    }
    render() {
        const { count } = this.state
        const { fn } = this.props
        return (
            <div>
                son --- { count }
                <button onClick = {() => {
                    fn(count)
                }}>点我</button>
            </div>
        )
    }
}
